﻿/*==============================================================
 * LinkGroupMapping.cs
 * Copyright (C) 2014 贵州惠众互联 Inc. All rights reserved.
 *==============================================================
 * Author:   罗应红
 * Date:     2014/02/28 16:05:49.
 * Version:  1.0
 * QQ:		 88962800
*==============================================================*/

using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;
using QDT.Core.Domain;

namespace QDT.Core.MSData.Mapping {
    public class LinkGroupMapping:EntityTypeConfiguration<LinkGroup> {
        public LinkGroupMapping() {
            HasKey(o => o.ID);
            Property(o => o.ID).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
            Property(o => o.IsEffect).HasColumnName("is_effect");
            ToTable(DB.TPref("link_group"));
        }
    }
}